package 集合框架;

import javax.annotation.processing.SupportedSourceVersion;
import java.util.Scanner;

public class Stringdemo {
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        System.out.println("输入用户名");
        String name=input.next();
        System.out.println("请输入密码");
        String pwd=input.next();
        if (pwd.length()<6||pwd.length()>10){
            System.out.println("密码长度是6-10位！");
        }else{
            System.out.println("密码正确");
            return;
        }
    }


}
